<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>修改菜品信息</title>
  <style>
    *{
      margin: 0px;
      padding: 0px;
      box-sizing: border-box;
    }
    body{
      background: url("images/bg.png") no-repeat center;
      padding-top: 25px;
    }
    .rg_layout{
      width: 900px;
      height: 500px;
      border: 8px solid #EEEEEE;
      background-color: white;
      /*让div水平居中*/
      margin: auto;
    }
    .rg_left{
      /*border: 1px solid red;*/
      float: left;
      width: 290px;
      margin: 35px;
    }
    .rg_left > p:first-child{
      color:#FFD026;
      font-size: 20px;
    }

    .rg_left > p:last-child{
      color:#A6A6A6;
      font-size: 20px;

    }


    .rg_center{
      margin-top: 10px;
      width: 380px;
      float: left;
      margin: 65px;
      /* border: 1px solid red;*/
    }

    .rg_right{
      /*border: 1px solid red;*/
      width: 330px;
      float: right;
      margin-top: fill;
    }

    .rg_right > p:first-child{
      font-size: 15px;

    }
    .rg_right p a {
      color:pink;
    }

    .td_left{
      width: 200px;
      text-align: right;
      height: 45px;
    }
    .td_right{
      padding-left: 50px ;
    }

    #rpass,#raddress,#rname{
      width: 251px;
      height: 32px;
      border: 1px solid #A6A6A6 ;
      /*设置边框圆角*/
      border-radius: 5px;
      padding-left: 10px;
    }
    .img{
      width: 380px;
      height: 280px;
    }
    .button {
      display: inline-block;
      border-radius: 4px;
      background-color: #f4511e;
      border: none;
      color: #FFFFFF;
      text-align: center;
      font-size: 18px;
      padding: 10px;
      width: 135px;
      transition: all 0.5s;
      cursor: pointer;
      margin: 5px;
    }

    .button span {
      cursor: pointer;
      display: inline-block;
      position: relative;
      transition: 0.5s;
    }

    .button span:after {
      content: '»';
      position: absolute;
      opacity: 0;
      top: 0;
      right: -20px;
      transition: 0.5s;
    }

    .button:hover span {
      padding-right: 25px;
    }

    .button:hover span:after {
      opacity: 1;
      right: 0;
    }


    #btn_sub{
      width: 150px;
      height: 40px;
      background-color: #FFD026;
      border: 1px solid #FFD026 ;
    }

  </style>

</head>
<body>

<div class="rg_layout">
  <div class="rg_left">
    <p>修改菜品信息</p>
    <p>CHANGE DISHES INFOMATION</p>
    <img class="img" src="images/GIF6.gif">
  </div>

  <div class="rg_center">
    <div class="rg_form">
      <!--定义表单 form-->
      <form action="dishes/change" method="post">
        <table>

          <tr>
            <td class="td_left"><label for="dname">菜品名:</label></td>
            <td class="td_right"><input type="text" name="dname" id="dname" placeholder="请输入菜名"></td>
          </tr>

          <tr>
            <td class="td_left"><label for="dvalue">单价:</label></td>
            <td class="td_right"><input type="text" name="dvalue" id="dvalue" placeholder="请输入菜品单价"></td>
          </tr>

          <tr>
            <td class="td_left"><label for="dintroduction">菜品介绍:</label></td>
            <td class="td_right"><input type="text" name="dintroduction" id="dintroduction" placeholder="请输入菜品介绍"></td>
          </tr>
          <tr>
            <td colspan="2" align="center"><input type="submit" id="btn_sub" value="修改"></td>
          </tr>
        </table>
      </form>
    </div>
  </div>
  <div class="rg_right">
    <form action="restaurant.html">
      <button class="button" style="vertical-align:middle"><span>返回主页</span></button>
    </form>
  </div>
</div>
</body>
</html>
